#include "MdiDockWidget.h"
#include "AnimationMdiArea.h"

//#include <QTabWidget>
//#include <QLabel>
#include <QVBoxLayout>
//#include <QMdiArea>
//#include "ShortLayout.h"
//#include "BrowserLayout.h"

MdiDockWidget::MdiDockWidget()
{

    this->setMinimumHeight(300);

    //this->setMaximumWidth(10000);
    this->setMaximumHeight(800);
    this->setFeatures(QDockWidget::NoDockWidgetFeatures);

    this->setTitleBarWidget(new QWidget(this));
    this->init_layout();
}



MdiDockWidget::~MdiDockWidget()
{}



void
MdiDockWidget::init_layout ()
{
    QWidget* widget = new QWidget;

    //widget->setStyleSheet("QWidget#widgetMain{border: 10px solid #FF00FF; border-radius: 5px;}");

    QVBoxLayout* common_layout = new QVBoxLayout(widget);
    QMdiArea* area = new AnimationMdiArea(widget);
    common_layout->addWidget(area);
    //common_layout->addStretch();
    //QHBoxLayout* shor_yout =  new ShortLayout(common_layout);
    //QVBoxLayout* browser_layout = new BrowserLayout (common_layout);
    this->setWidget(widget);

}
